<?
        require_once('../../Inc/Global.php');
        require_once('CategoryData.php');
        $rs = GetCategory($_REQUEST['ID']);
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../Main.css" />
<title>View Categories</title>
</head>
<body>
	<p>You have selected:</p>
	                    <div>
	                   		<label>ID:</label>
							<?=$rs['ID']?>
						</div>
                        <div>
                        	<label>Category Name:</label>
							<?=$rs['Name']?></div>

                        <div>
                        	<label>Created at:</label>
							<?=$rs['Created_at']?>
						</div>
                        <div>
                        	<label>Last updated at:</label>
							<?=$rs['Updated_at']?>
						</div>
                        
    <br />                     
    <input type="button" value="Go Back" onclick="window.location.href='http://cs.newpaltz.edu/~N00001387/WebClass/DatabaseProject/CategoriesMgmt'" />
    <br />
    <input type="button" value="Go To Home Screen" onclick="window.location.href='http://cs.newpaltz.edu/~N00001387/WebClass/DatabaseProject/'" />
</body>
</html>
